package testClasses.misc;

import gameAppLayer.enums.Constants;

import java.io.BufferedWriter;
import java.io.DataOutputStream;
import java.io.FileOutputStream;
import java.io.FileWriter;

public class FileWritingTest {
	
	
	public static void main(String[] args) {
		FileWritingTest test = new FileWritingTest();
		test.execute();
	}
	
	
	public void execute() {
		
		String path = Constants.dataPath + "//myfile.txt";
		
		Float test = 1.345734858347545f;
		
		try {
			FileWriter fw = new FileWriter(path);
			BufferedWriter bw = new BufferedWriter(fw);
			
			bw.write(test.toString() + "\n");
			bw.write(test.toString());
			bw.close();
			
		}
		catch (Exception e) {
			System.out.println("IOException: " + e);
		}
		
	}
	
	
	

}
